package com.zheng.mall.common.exception;

import com.zheng.mall.common.api.RequestErrorCode;

/**
 * 断言处理类，用于抛出各种API异常
 * @author zheng
 */
public class Asserts {
    public static void fail(String message) {
        throw new ApiExceptions(message);
    }

    public static void fail(RequestErrorCode requestErrorCode) {
        throw new ApiExceptions(requestErrorCode);
    }
}
